$('#mdBtn, #mdLink').click(function () {
    var mdValue = txt.getValue();
    var count = txt.wordCount(mdValue);
    console.log(mdValue + ', count ' + count);
    oceModal({
        content:'<pre><xmp>' + mdValue + '</xmp></pre>'
    });
});

$('#htmlBtn, #htmlLink').click(function () {
    var htmlValue = txt.getHtml();
    console.log(htmlValue);
    oceModal({
        content:'<pre><xmp>' + htmlValue + '</xmp></pre>'
    });
});